import request from '@/router/axios'

export function fetchEimsCtgSaleList(query) {
  return request({
    url: '/eims/ctgsale/page',
    method: 'get',
    params: query
  })
}

export function addEimsCtgSaleObj(obj) {
  return request({
    url: '/eims/ctgsale',
    method: 'post',
    data: obj
  })
}

export function getEimsCtgSaleObj(id) {
  return request({
    url: '/eims/ctgsale/' + id,
    method: 'get'
  })
}

export function delEimsCtgSaleObj(id) {
  return request({
    url: '/eims/ctgsale/' + id,
    method: 'delete'
  })
}

export function putEimsCtgSaleObj(obj) {
  return request({
    url: '/eims/ctgsale',
    method: 'put',
    data: obj
  })
}
